package com.yyge.vo;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yyge.entity.AdminUser;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;
@Mapper
public interface BeanConverter {
    BeanConverter MAPPER = Mappers.getMapper(BeanConverter.class);
     /**
       将Employee 转换为登录用户 VO
     */

     @Mapping(source = "loginUserName",target = "name")
     LoginVO emp2LoginVO (AdminUser adminUser);


     @Mapping(source="records",target="rows")
     PageVo page2vo(Page list);
}
